package com.jiayi.weiphoto.util;

import android.content.Context;
import android.content.Intent;

import com.jiayi.weiphoto.R;
import com.jiayi.weiphoto.activity.MainConstants;
import com.jiayi.weiphoto.activity.PageActivity;

public class IntentUtil {
	
	public static void shareWithMail(Context context){
		try {
//			File f = new File(DImge.PATH + "0");
			Intent intent = new Intent(android.content.Intent.ACTION_SEND);
			intent.setType("plain/text");
			intent.putExtra(android.content.Intent.EXTRA_SUBJECT, context.getString(R.string.app_name));
			intent.putExtra(android.content.Intent.EXTRA_TEXT,StringUtil.genShareMessage(context));
//			intent.setType("application/octet-stream");
			context.startActivity(intent);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
